LEFT JOIN on page, this picks up deletion log and salting stuff
authorAaron Schulz <aaron@users.mediawiki.org>
Wed, 9 Apr 2008 01:20:04 +0000 (01:20 +0000)
committerAaron Schulz <aaron@users.mediawiki.org>
Wed, 9 Apr 2008 01:20:04 +0000 (01:20 +0000)
includes/SpecialWatchlist.php

index 83146b6..a090685 100644 (file)
@@ -187,11 +187,11 @@ function wfSpecialWatchlist( $par ) {
                $wltsfield=", ${watchlist}.wl_notificationtimestamp ";
        }
        $sql = "SELECT ${recentchanges}.* ${wltsfield}
-         FROM $watchlist,$recentchanges,$page
+         FROM $watchlist,$recentchanges
+         LEFT JOIN $page ON rc_cur_id=page_id
          WHERE wl_user=$uid
          AND wl_namespace=rc_namespace
          AND wl_title=rc_title
-         AND rc_cur_id=page_id
          $andcutoff
          $andLatest
          $andHideOwn